using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsGroup : GeneratedMessageLite<SnsGroup, SnsGroup.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsGroup, SnsGroup.Builder>
		{
			private bool resultIsReadOnly;
			private SnsGroup result;
			protected override SnsGroup.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsGroup MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsGroup DefaultInstanceForType
			{
				get
				{
					return SnsGroup.DefaultInstance;
				}
			}
			public ulong GroupId
			{
				get
				{
					return this.result.GroupId;
				}
				set
				{
					this.SetGroupId(value);
				}
			}
			public Builder()
			{
				this.result = SnsGroup.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsGroup cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsGroup PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsGroup other = this.result;
					this.result = new SnsGroup();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsGroup.Builder Clear()
			{
				this.result = SnsGroup.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsGroup.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsGroup.Builder(this.result);
				}
				return new SnsGroup.Builder().MergeFrom(this.result);
			}
			public override SnsGroup BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsGroup.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsGroup)
				{
					return this.MergeFrom((SnsGroup)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsGroup.Builder MergeFrom(SnsGroup other)
			{
				return this;
			}
			public override SnsGroup.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsGroup.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsGroup._snsGroupFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsGroup._snsGroupFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasGroupId = input.ReadUInt64(ref this.result.groupId_);
					}
				}
				return this;
			}
			public SnsGroup.Builder SetGroupId(ulong value)
			{
				this.PrepareBuilder();
				this.result.hasGroupId = true;
				this.result.groupId_ = value;
				return this;
			}
			public SnsGroup.Builder ClearGroupId()
			{
				this.PrepareBuilder();
				this.result.hasGroupId = false;
				this.result.groupId_ = 0uL;
				return this;
			}
		}
		public const int GroupIdFieldNumber = 1;
		private static readonly SnsGroup defaultInstance;
		private static readonly string[] _snsGroupFieldNames;
		private static readonly uint[] _snsGroupFieldTags;
		private bool hasGroupId;
		private ulong groupId_;
		private int memoizedSerializedSize = -1;
		public static SnsGroup DefaultInstance
		{
			get
			{
				return SnsGroup.defaultInstance;
			}
		}
		public override SnsGroup DefaultInstanceForType
		{
			get
			{
				return SnsGroup.DefaultInstance;
			}
		}
		protected override SnsGroup ThisMessage
		{
			get
			{
				return this;
			}
		}
		public ulong GroupId
		{
			get
			{
				return this.groupId_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasGroupId;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasGroupId)
				{
					num += CodedOutputStream.ComputeUInt64Size(1, this.GroupId);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsGroup()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsGroupFieldNames = SnsGroup._snsGroupFieldNames;
			if (this.hasGroupId)
			{
				output.WriteUInt64(1, snsGroupFieldNames[0], this.GroupId);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasGroupId)
			{
				num ^= this.groupId_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			SnsGroup snsGroup = object_0 as SnsGroup;
			return snsGroup != null && (this.hasGroupId == snsGroup.hasGroupId && (!this.hasGroupId || this.groupId_.Equals(snsGroup.groupId_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsGroup, SnsGroup.Builder>.PrintField("GroupId", this.hasGroupId, this.groupId_, writer);
		}
		public static SnsGroup ParseFrom(byte[] data)
		{
			return SnsGroup.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsGroup MakeReadOnly()
		{
			return this;
		}
		public static SnsGroup.Builder CreateBuilder()
		{
			return new SnsGroup.Builder();
		}
		public override SnsGroup.Builder ToBuilder()
		{
			return SnsGroup.CreateBuilder(this);
		}
		public override SnsGroup.Builder CreateBuilderForType()
		{
			return new SnsGroup.Builder();
		}
		public static SnsGroup.Builder CreateBuilder(SnsGroup prototype)
		{
			return new SnsGroup.Builder(prototype);
		}
		static SnsGroup()
		{
			SnsGroup.defaultInstance = new SnsGroup().MakeReadOnly();
			SnsGroup._snsGroupFieldNames = new string[]
			{
				"GroupId"
			};
			SnsGroup._snsGroupFieldTags = new uint[]
			{
				8u
			};
			object.ReferenceEquals(micromsg.Proto.SnsGroup.Descriptor, null);
		}
	}
}
